home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Internet on a CD / internet on a cd.cdr / Internet / sites / Clementine_NASA / clemdcmp-2.txt < prev    next >
Encoding:
Text File  |  1998-07-16  |  6.7 KB  |  88 lines

  1. PDS_VERSION_ID              = PDS3                                            
  2. RECORD_TYPE                 = FIXED_LENGTH                                    
  3. RECORD_BYTES                = 80                                              
  4. OBJECT                      = TEXT                                            
  5.    INTERCHANGE_FORMAT       = ASCII                                           
  6.    PUBLICATION_DATE         = 1994-10-01                                      
  7.    NOTE                     = "CLEMDCMP USER'S GUIDE"                         
  8. END_OBJECT                  = TEXT                                            
  9. END                                                                           
  10.                                                                               
  11.                         CLEMDCMP  V1.0                                        
  12.                                                                               
  13.      CLEMDCMP will decompress a clementine image and format it into           
  14. one of four formats:                                                          
  15.        1) decompressed pds image file, with pds labels, the historgram        
  16.            object, and an image object, either the browse image or            
  17.            the full image                                                     
  18.        2) decompressed image file, no labels                                  
  19.        3) decompressed gif image                                              
  20.        4) decompressed tiff image                                             
  21.                                                                               
  22.                                                                               
  23.   Installing and Using Software on a SUN UNIX Workstation                     
  24.                                                                               
  25.      The executable for CLEMDCMP was put into a "uuencoded" ascii file        
  26. that was created from a compressed tar file.  This file is located in         
  27. the BIN subdirectory and is named CLEMDEXE.TZU.  To extract the executable    
  28. type the the following commands:                                              
  29.                                                                               
  30.    1)  uudecode /<your-cd-device>/SOFTWARE/SUNOS/BIN/CLEMDEXE.TZU             
  31.        (Depending on the SUN platform this path may be in lower case.)        
  32.        This will create a file named CLEMDEXE.TAR.Z.                          
  33.                                                                               
  34.    2)  uncompress -v CLEMDEXE.TAR.Z                                           
  35.            This will create a file named CLEMDEXE.TAR.                        
  36.                                                                               
  37.    3)  tar xvf CLEMDEXE.TAR                                                   
  38.            This will create the executable, "clemdcmp".                       
  39.                                                                               
  40.                                                                               
  41.     The source for "clemdcmp" and a makefile to build the program is          
  42. located in the SOURCE subdirectory in the file, CLEMDSRC.TZU.  This           
  43. file is an ascii file created from a compressed tar file.  To extract         
  44. the source files and makefile type the following commands:                    
  45.                                                                               
  46.    1)  uudecode /<your-cd-device>/SOFTWARE/SUNOS/SOURCE/CLEMDSRC.TZU          
  47.        (Depending on the SUN platform this path may be in lower case.)        
  48.        This will create a file named CLEMDSRC.TAR.Z.                          
  49.                                                                               
  50.    2)  uncompress -v CLEMDSRC.TAR.Z                                           
  51.            This will create a file named CLEMDSRC.TAR.                        
  52.                                                                               
  53.    3)  tar xvf CLEMDSRC.TAR                                                   
  54.            This will create the following files.                              
  55.               bitstrm.c                                                       
  56.               clemdcmp.c                                                      
  57.               clemdcmp.mak                                                    
  58.               decomp.c                                                        
  59.               huffman.c                                                       
  60.               jpeg_c.h                                                        
  61.               pds.c                                                           
  62.               pds.h                                                           
  63.               writegif.c                                                      
  64.                                                                               
  65.                                                                               
  66.     This program has been tested on a SUN SPARCstation running version        
  67. 4.1.3 of SunOS.  It was compiled and linked using the acc compiler (This      
  68. is an ANSI compliant compiler).  The makefile clemdcmp.mak will compile       
  69. and link the program using the following command:                             
  70.                                                                               
  71.    make -f clemdcmp.mak                                                       
  72.                                                                               
  73.                                                                               
  74.        CLEMDCMP has four command-line arguments.  The first argument          
  75.        indicates the output format of the decompressed image and              
  76.        the following are the options:                                         
  77.          -p = decompressed pds image file                                     
  78.          -n = decompressed unlabeled file                                     
  79.          -t = decompressed tiff file                                          
  80.          -g = decompressed gif file                                           
  81.        The second argument indicates which image object to output:            
  82.          -i = full resolution image                                           
  83.          -b = browse image                                                    
  84.        The third argument is the filename of the input compressed clementine  
  85.          data file.                                                           
  86.        The fourth argument is the filename of the output decompressed         
  87.          clementine image.                                                    
  88.